package com.bookmarket.entity;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 10:58
 */

/**
 * 管理员
 */
public class Admin {
    private int id;
    private String name;//登录名
    private String pass;//密码
    private Role role;//权限外键

    public Admin() {
    }

    public Admin(int id, String name, String pass, Role role) {
        this.id = id;
        this.name = name;
        this.pass = pass;
        this.role = role;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
